{% extends 'base.html' %}

{% block title %}客户单位列表{% endblock %}

{% block head %}

    <link rel="stylesheet" href="{{ url_for('static', filename='css/custlist.css') }}">
{% endblock %}



{% block index_main %}
    <div class="indexmain">
        <div class="addstaff">
            <form action="{{ url_for('newcust') }}", method="get">
                <button class="btn btn-primary">新增客户单位</button>
            </form>
        </div>
        <table class="table">
            <tbody>
            <tr>
                <th>#</th>
                <th>客户单位名称</th>
                <th>操作</th>
            </tr>
            {% for cust in custs %}
                <tr>
                    <td>{{ cust.id }}</td>
                    <td>{{ cust.custunit_name }}</td>
                    <td><a href="#">编辑</a></td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
{% endblock %}